#define _CRT_SECURE_NO_WARNINGS
#include"List.h"
void TestList1() {
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}
void TestList2() {
	LTNode* plist = LTInit();
	LTPushFront(plist, 1);
	LTPushBack(plist, 2);
	LTPushFront(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	LTPopFront(plist);
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}
void TestList3() {
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	LTNode* pos = LTFind(plist, 4);
	if (pos) {
		LTInsert(pos, 9);
	}
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}

int main() {
	//TestList1();
	//TestList2();
	TestList3();
	return 0;
}